package com.ll.app.api.req;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class AddGoodsReqDTO {
    @NotNull(message = "integral不能为null")
    @ApiModelProperty(value = "价格", required = true,example = "40")
    private Integer integral;

    @NotNull(message = "code不能为null")
    @ApiModelProperty(value = "商品编码",required = true, example = "whs")
    private String code;

    @NotNull(message = "name不能为null")
    @ApiModelProperty(value = "名字",required = true, example = "文化衫")
    private String name;

    @ApiModelProperty(value = "备注说明", example = "说明")
    private String remarks;

    @NotNull(message = "stock不能为null")
    @ApiModelProperty(value = "库存",required = true, example = "100")
    private Integer stock;

    @ApiModelProperty(value = "扩展属性", example = "")
    private String extData;

    @NotNull(message = "stock不能为null")
    @ApiModelProperty(value = "创建者", required = true, example = "6015124")
    private Long creator;
}
